// 自定义样式放这里，全局放不下了
// 自定义样式放这里，全局放不下了
// 自定义样式放这里，全局放不下了

/*
scss 常量
*/
$white: #fff;
$black: #000;
$l-form-border-color: #d0d0d0; //  表单边框颜色
$l-btn-del-bgc: #f56c6c; // 删除按钮背景色
$l-btn-save-bgc: #f3c45d; // 保存按钮背景色
$l-btn-add-bgc: #f3c45d; // 添加按钮背景色

// 原生表单样式
.l-form {
  font-size: 14px;

  .l-form-item {
    display: flex;
    margin-bottom: 8px;

    .l-lbl {
      width: 90px;
      padding-top: 3px;
      font-weight: bold;
      &.required {
        position: relative;
        &::before {
          position: absolute;
          top: 5px;
          left: -7px;
          content: '*';
          color: red;
          display: inline-block;
        }
      }
    }

    .l-form-right {
      flex: 1;

      .l-form-right-content {
        display: flex;
        align-items: center;
        border: 1px solid #d0d0d0;
        background-color: #fff;
        border-radius: 5px;
        padding: 3px 5px;
      }
    }

    // 文本框样式
    /*     .l-form-right.l-form-input {
      // height: 28px;
    } */

    .l-form-right.l-form-input,
    .l-form-right.l-form-textarea {
      flex: 1;
      border: 1px solid $l-form-border-color;
      border-radius: 5px;
      padding: 3px 5px;
      background-color: $white;

      // input  样式
      .l-input {
        width: 100%;
      }

      //  textarea样式
      .l-textarea {
        width: 100%;
        height: 90px;
      }
    }

    // 树和picker样式
    .tree,
    .picker {
      flex: 1;
      border: 1px solid $l-form-border-color;
      background-color: $white;
      padding: 7rpx 10rpx;
      border-radius: 5px;
    }
  }
}

.container {
  height: 100vh;

  // 吸顶导航
  .tabs {
    position: sticky;
    top: 0;
    background-color: #f8f8f8;
    z-index: 666;
  }

  // 底部按钮组
  .bottom-btn-group {
    display: flex;
    align-items: center;
    position: fixed;
    background-color: $white;
    left: 0rpx;
    right: 0rpx;
    bottom: 0;
    height: 70px;
    z-index: 9999;

    .btn-del {
      display: flex;
      flex: 1;
      margin-right: 15px;
      margin-left: 15px;
      align-items: center;
      justify-content: center;
      height: 49px;
      font-size: 18px;
      background-color: $l-btn-del-bgc;
      letter-spacing: 3px;
      color: #fff;
      font-weight: bold;
      border-radius: 10px;
    }

    .btn-edit {
      display: flex;
      flex: 1;
      margin-left: 15px;
      margin-right: 15px;
      align-items: center;
      justify-content: center;
      height: 49px;
      font-size: 18px;
      background-color: $l-btn-save-bgc;
      letter-spacing: 3px;
      color: $white;
      font-weight: bold;
      border-radius: 10px;
    }
  }

  //   单独一个保存按钮
  .bottom-add {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: $l-btn-add-bgc;
    color: $white;
    font-size: 18px;
    font-weight: bold;
    z-index: 9999;
  }

  .items-container {
    .items {
      margin: 15px 20rpx;
      background-color: #fff;
      border-radius: 10px;
      padding: 12px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;

      .item-title {
        font-weight: bold;
      }
    }
  }

  .content {
    padding: 10px;
    padding-bottom: 90px;
  }
}

.f1 {
  flex: 1;
}
